import request from '@/utils/request';

// 查询库存记录列表
export const listStockLog = (query: any) => {
  return request({
    url: '/project/stockLog/list',
    method: 'get',
    params: query
  });
}

// 查询库存记录详细
export const getStockLog = (stockLogId: any) => {
  return request({
    url: `/project/stockLog/${stockLogId}`,
    method: 'get'
  });
}

// 新增库存记录
export const addStockLog = (data: any) => {
  return request({
    url: '/project/stockLog',
    method: 'post',
    data: data
  });
}

// 修改库存记录
export const updateStockLog = (data: any) => {
  return request({
    url: '/project/stockLog',
    method: 'put',
    data: data
  });
}

// 删除库存记录
export const delStockLog = (stockLogId: any) => {
  return request({
    url: `/project/stockLog/${stockLogId}`,
    method: 'delete'
  });
}
